class SceneEnd extends GuaScene {
    constructor(game) {
        super(game)

        game.registerAction('r', function() {
            game.replaceSceneByName("main")
            game.scene.ball.y = 50

        })

    }


    draw() {
        this.game.context.strokeText('游戏结束, 按 r 返回标题界面', 20, 250)
    }

}